package cs275.ants.graphics;

import com.jme.renderer.Renderer;
import com.jmex.effects.particles.ParticleMesh;

/**
 * Does no rendering of Particles.  Inject when you don't want particles at all.
 * 
 * @author roytiburcio
 */
public class NoOpParticleGenerator extends ParticleGenerator {

	public NoOpParticleGenerator() {
		super(new MockResources());
	}

	private static class MockResources extends Resources {
		@Override
		public ParticleMesh particleMesh() {
			ParticleMesh mesh = new ParticleMesh() {
				@Override
				public void updateGeometricState(float arg0, boolean arg1) { }

				@Override
				public void draw(Renderer arg0) { }
			};
			return mesh;
		}
	}
}
